package souralven.jcomicreader.ui;

import java.awt.image.BufferedImage;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

public class ImageLabel extends JLabel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6564692671074340323L;
	private BufferedImage image;

	public ImageLabel() {
		super();
	}
	
	public ImageLabel(final Icon image) {
		super(image);
	}
	
	public ImageLabel(final String text) {
		super(text);
	}
	
	public void setIcon(final BufferedImage image) {
		this.image = image;
		super.setIcon(new ImageIcon(image));
	}

	/**
	 * @return the image
	 */
	public BufferedImage getImage() {
		return image;
	}
}
